// const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const path = require('path')
module.exports = {
    publicPath: './',
    chainWebpack (config) {
        config.resolve.alias.set('@', path.join(__dirname, 'src'))
    },
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    modifyVars: {
                        // 'primary-color': '#52c41a'
                    },
                    javascriptEnabled: true
                }
            }
        }
    },
    devServer: {
        clientLogLevel: 'info',
        proxy: {
            '': {
                target: 'http://127.0.0.1:3000/',
                changeOrigin: true
            }
        }
    }
}
